package sk.umb.nadrz.model;

public class Nadrz {

	private Double dlzka;
	private Double polomer;
	private Double sklon;
	private Axis os;
	private Double polomerGula;
	private BoundingBox box;
	
	public Nadrz(Double dlzka, Double polomer, Double sklon, Double polomerGula) {
		this.dlzka = dlzka;
		this.polomer = polomer;
		this.sklon = sklon;
		this.polomerGula = polomerGula;
		this.os = new Axis(dlzka, polomer, sklon);
		this.box = new BoundingBox(Math.sin(sklon) * 2 * polomer + Math.cos(sklon) * dlzka, Math.cos(sklon) * 2 * polomer + Math.sin(sklon) * dlzka, 2 * polomer);
	}
	
	public Double getPolomerGula() {
		return polomerGula;
	}
	public void setPolomerGula(Double polomerGula) {
		this.polomerGula = polomerGula;
	}
	public Double getDlzka() {
		return dlzka;
	}
	public void setDlzka(Double dlzka) {
		this.dlzka = dlzka;
	}
	public Double getPolomer() {
		return polomer;
	}
	public void setPolomer(Double polomer) {
		this.polomer = polomer;
	}
	public Double getSklon() {
		return sklon;
	}
	public void setSklon(Double sklon) {
		this.sklon = sklon;
	}
	public Axis getOs() {
		return os;
	}
	public void setOs(Axis os) {
		this.os = os;
	}
	public BoundingBox getBox() {
		return box;
	}
	public void setBox(BoundingBox box) {
		this.box = box;
	}
}
